<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>找回密码 - 湖南信息学院</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            background-image: url("media/login-bg.jpg");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 头部样式 */
        header {
            background: linear-gradient(135deg, #1a5fb4 0%, #1c71d8 100%);
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            height: 50px;
            width: auto;
            margin-right: 15px;
            object-fit: contain;
            border-radius: 3px;
        }
        
        .logo h1 {
            font-size: 24px;
            font-weight: bold;
            line-height: 1;
        }
        
        nav ul {
            display: flex;
            list-style: none;
            align-items: center;
        }
        
        nav ul li {
            margin-left: 20px;
            position: relative;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 5px;
            transition: background-color 0.3s;
            display: inline-block;
        }
        
        nav ul li a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .search-box {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 20px;
            padding: 5px 15px;
            margin-left: 30px;
        }
        
        .search-box input {
            border: none;
            outline: none;
            padding: 8px 0;
            width: 200px;
            background: transparent;
            text-align: left;
        }
        
        .search-box button {
            background: none;
            border: none;
            cursor: pointer;
            color: #1a5fb4;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 找回密码表单样式 */
        .main-content {
            padding: 50px 0;
            min-height: 60vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .password-reset-container {
            background: white;
            border-radius: 10px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 500px;
        }
        
        .reset-title {
            text-align: center;
            margin-bottom: 30px;
            color: #1a5fb4;
            font-size: 24px;
        }
        
        .reset-form {
            width: 100%;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #555;
        }
        
        .form-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background-color: #f8f9fa;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .form-input:focus {
            outline: none;
            border-color: #1a5fb4;
            background-color: white;
            box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.2);
        }
        
        .captcha-group {
            display: flex;
            gap: 10px;
        }
        
        .captcha-input {
            flex: 1;
        }
        
        .captcha-btn {
            padding: 12px 20px;
            background: #e6f0ff;
            color: #1a5fb4;
            border: 1px solid #1a5fb4;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }
        
        .captcha-btn:hover {
            background: #1a5fb4;
            color: white;
        }
        
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }
        
        .submit-btn:hover {
            background: #c0392b;
        }
        
        .form-footer {
            text-align: center;
            margin-top: 20px;
            color: #666;
        }
        
        .form-footer a {
            color: #1a5fb4;
            text-decoration: none;
        }
        
        .form-footer a:hover {
            text-decoration: underline;
        }
        
        /* 底部样式 */
        footer {
            background: #2c2c2c;
            color: white;
            padding: 40px 0 20px;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
        }
        
        .footer-section {
            flex: 1;
            padding: 0 20px;
        }
        
        .footer-section h3 {
            margin-bottom: 15px;
            color: #1c71d8;
            text-align: left;
            font-size: 18px;
        }
        
        .footer-section p {
            text-align: left;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 8px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #444;
            font-size: 14px;
            line-height: 1.5;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
    <header>
        <div class="container header-content">
            <div class="logo">
                <img src="湘信院logo.png" alt="湖南信息学院logo">
                <h1>湖南信息学院</h1>
            </div>
            <nav>
                <ul>
                    <li><a href="第一张.html">首页</a></li>
                    <li><a href="#">校园概况</a></li>
                    <li><a href="第二张.html">教学科研</a></li>
                    <li><a href="第三张.html">校园活动</a></li>
                    <li><a href="#">招生就业</a></li>
                    <li><a href="#">联系我们</a></li>
                </ul>
            </nav>
            <div class="search-box">
                <input type="text" placeholder="搜索校园内容...">
                <button><i class="fas fa-search"></i></button>
            </div>
        </div>
    </header>

    <!-- 内容区 -->
    <div class="container main-content">
        <div class="password-reset-container">
            <h2 class="reset-title">找回密码</h2>
            <form class="reset-form">
                <div class="form-group">
                    <label class="form-label" for="student-id">学工号</label>
                    <input type="text" id="student-id" class="form-input" placeholder="请输入您的学工号" required>
                </div>
                
                <div class="form-group">
                    <label class="form-label" for="phone">手机号</label>
                    <input type="tel" id="phone" class="form-input" placeholder="请输入绑定的手机号码" required>
                </div>
                
                <div class="form-group">
                    <label class="form-label" for="new-password">新密码</label>
                    <input type="password" id="new-password" class="form-input" placeholder="请输入新密码" required>
                </div>
                
                <div class="form-group">
                    <label class="form-label" for="confirm-password">确认密码</label>
                    <input type="password" id="confirm-password" class="form-input" placeholder="请再次输入新密码" required>
                </div>
                
                <div class="form-group">
                    <label class="form-label" for="captcha">验证码</label>
                    <div class="captcha-group">
                        <input type="text" id="captcha" class="form-input captcha-input" placeholder="请输入验证码" required>
                        <button type="button" class="captcha-btn">获取验证码</button>
                    </div>
                </div>
                
                <button type="submit" class="submit-btn">立即验证</button>
                
                <div class="form-footer">
                    <p>想起密码？<a href="login.html">返回登录</a></p>
                </div>
            </form>
        </div>
    </div>

    <!-- 底部 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-section">
                    <h3>校园地址</h3>
                    <p>国家级长沙经济技术开发区毛塘工业园湖南信息学院</p>
                </div>
                <div class="footer-section">
                    <h3>联系电话</h3>
                    <p>招生办: 0731-84098666 </p>
                    <p>传真：0731-84098777</p>
                </div>
                <div class="footer-section">
                    <h3>快速链接</h3>
                    <p>校园信息系统</p>
                    <p>图书馆资源</p>
                    <p>教务管理系统</p>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; 2025 湖南信息学院 版权所有 | 许可证号：A10010065</p>
            </div>
        </div>
    </footer>

    <script>
        // 获取验证码按钮倒计时功能
        document.querySelector('.captcha-btn').addEventListener('click', function() {
            const btn = this;
            let countdown = 60;
            
            btn.disabled = true;
            btn.textContent = `${countdown}秒后重新获取`;
            
            const timer = setInterval(() => {
                countdown--;
                btn.textContent = `${countdown}秒后重新获取`;
                
                if (countdown <= 0) {
                    clearInterval(timer);
                    btn.disabled = false;
                    btn.textContent = '获取验证码';
                }
            }, 1000);
        });
        
        // 表单提交验证
        document.querySelector('.reset-form').addEventListener('submit', function(e) {
            e.preventDefault();
            
            const newPassword = document.getElementById('new-password').value;
            const confirmPassword = document.getElementById('confirm-password').value;
            
            if (newPassword !== confirmPassword) {
                alert('两次输入的密码不一致，请重新输入！');
                return;
            }
            
            if (newPassword.length < 6) {
                alert('密码长度不能少于6位！');
                return;
            }
            
            // 模拟提交成功
            alert('密码重置成功！请使用新密码登录。');
            window.location.href = '登录.html';
        });
    </script>
</body>
</html>